package mercurialpractice

class Customer {
String name
String lastname
String address
String nphone

    static hasMany = [bills:Bill]
    
    static constraints = {
        name blank : false
        lastname blank : false
        address blank : false
        nphone blank : false, size: 7..12
    }
    String toString() {
        "${name} ${lastname}"
    }
}
